/* 页面公共scss */
.container {
	background-color: $custom-bg-color;
  margin: 0;
  padding: 0;
	box-sizing: border-box;
	height: 100%;
}
.text-golden{
	color: #C4AD8C;
}
.text-black{
	color: #333333;
}
.text-tips{
	color: #999999;
}
.text-read{
	color: #818181;
}
.text-gray{
	color: #666666;
}
.text-blue{
  color: #156DBE;
}
.u-font-weight{
	font-weight: bold;
}
.bg-white{
	background: #ffffff;
}
.u-border-radius{
  border-radius: 15rpx;
}

.u-flex {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
}

.u-flex-wrap {
	flex-wrap: wrap;
}

.u-flex-nowrap {
	flex-wrap: nowrap;
}

.u-col-center {
	align-items: center;
}

.u-col-top {
	align-items: flex-start;
}

.u-col-bottom {
	align-items: flex-end;
}

.u-row-center {
	justify-content: center;
}

.u-row-left {
	justify-content: flex-start;
}

.u-row-right {
	justify-content: flex-end;
}

.u-row-between {
	justify-content: space-between;
}

.u-row-around {
	justify-content: space-around;
}

.u-text-left {
	text-align: left;
}

.u-text-center {
	text-align: center;
}

.u-text-right {
	text-align: right;
}

.u-flex-col {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: column;
}
// 定义flex等分
@for $i from 0 through 12 {
	.u-flex-#{$i} {
		flex: $i;
	}
}

@for $i from 20 through 100 {
  @if $i % 20 == 0 {
    .u-w-#{$i} {
      width:$i + vw;
    }
	}
}

// 定义字体(rpx)单位，大于或等于20的都为rpx单位字体
@for $i from 20 through 50 {
	.u-font-#{$i} {
		font-size: $i + rpx;
	}
}

// 定义内外边距，历遍1-80
@for $i from 0 through 80 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 得出：u-margin-30或者u-m-30
		.u-margin-#{$i}, .u-m-#{$i} {
			margin: $i + rpx!important;
		}

		// 得出：u-padding-30或者u-p-30
		.u-padding-#{$i}, .u-p-#{$i} {
			padding: $i + rpx!important;
		}

		@each $short, $long in l left, t top, r right, b bottom {
			// 缩写版，结果如： u-m-l-30
			// 定义外边距
			.u-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}

			// 定义内边距
			.u-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}

			// 完整版，结果如：u-margin-left-30
			// 定义外边距
			.u-margin-#{$long}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}

			// 定义内边距
			.u-padding-#{$long}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}

			.u-p-lr-#{$i}{
				padding-left: $i + rpx!important;
				padding-right: $i + rpx!important;
			}
			.u-p-tb-#{$i}{
				padding-top: $i + rpx!important;
				padding-bottom: $i + rpx!important;
			}
			.u-m-lr-#{$i}{
				margin-left: $i + rpx!important;
				margin-right: $i + rpx!important;
			}
			.u-m-tb-#{$i}{
				margin-top: $i + rpx!important;
				margin-bottom: $i + rpx!important;
			}
		}
	}
}
